<style>
    table.tecspec {
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid #dddddd;
    }
    table.tecspec>tbody>tr>th,table.tecspec>tbody>tr>td{
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #ddd;
    }
    table.tecspec>tbody>tr>th{
        border-right: 1px solid #ddd;
    }
</style>

<?php $this->load->view('templates/backend/header'); ?>
<h3><?php echo $this->lang->line('booking_info');?></h3><a href="javascript:history.back(1)">Back</a>

<?php
if(!empty($info)){
    ?>
        <table class="tecspec">
            <tbody>
            <tr>
              <th style="width:25%"><?php echo $this->lang->line('customerID');?></th>
              <td width="75%"><?php echo $info->customerID;?></td>
            </tr>
            <tr>
              <th style="width:25%"><?php echo $this->lang->line('advance');?></th>
              <td width="75%"><?php echo ($info->advance==1)?$this->lang->line('yes'):$this->lang->line('no');?></td>
            </tr>
             <tr>
              <th><?php echo $this->lang->line('booking_place_code');?></th>
              <td><?php echo $info->booking_place_code;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('airline');?></th>
              <td><?php echo $info->airline;?></td>
            </tr>
            <?php
            if($info->booking_child){
                $child = '<br/>'.$this->lang->line('child').': '.$info->booking_child;
            } else {
                $child = '';
            }
            ?>
            <tr>
              <th><?php echo $this->lang->line('ship_name_customer');?></th>
              <td><?php echo str_replace('||', '<br/>', $info->booking_customer_name).$child;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('ship');?></th>
              <td><?php echo implode("<br/>",json_decode($info->booking));?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('net_fare');?></th>
              <td><?php echo $this->bookinglib->my_number_format($info->net_fare,2, ',', ',');?> VNĐ</td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('sale_fare');?></th>
              <td><?php echo $this->bookinglib->my_number_format($info->sale_fare,2, ',', ',');?> VNĐ</td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('payment_method');?></th>
              <td><?php echo $info->payment_name;?>
              </td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('bookdate');?></th>
              <td><?php echo date("d-m-Y H:i:s",$info->createdTime);?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('lastupdated');?></th>
              <td><?php echo date("d-m-Y H:i:s",$info->lastupdated);?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('payment_company');?></th>
              <td><?php echo ($info->payment_confirm == 1)?$this->lang->line('paid'):$this->lang->line('unpaid');?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('payment_air');?></th>
              <td><?php echo ($info->payment_air == 1)?$this->lang->line('paid'):$this->lang->line('unpaid');?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('note');?></th>
              <td><?php echo $info->note;?></td>
            </tr>
          </tbody>
        </table>
    <?php
} else {
    echo 'Không tìm thấy dữ liệu! Vui lòng thử lại sau';
}
?>
<div class="table">
    <span id="simple-content"></span>
</div>
<?php $this->load->view('templates/backend/footer'); ?>